# -*- codeing = utf-8 -*-
# @Time : 2022/9/19 20:31
# @Author : ZN
# @Email : 747723508@qq.com
# @File : urls.py
# @Software: PyCharm
from .views import *
from rest_framework.routers import DefaultRouter
urlpatterns = []
router = DefaultRouter()
router.register('article',ArticleViewSet)#注册路由 传参 ①url访问字段 ②对应的视图集
router.register('comment',CommentViewSet)#注册路由 传参 ①url访问字段 ②对应的视图集
urlpatterns += router.urls